package com.example.demo.repository;

import com.example.demo.entity.Course;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by pengwan on 2017/7/27.
 */
@RepositoryRestResource(collectionResourceRel = "course", path = "course") // 在'/course'处创建RESTful入口点
public interface CourseRepository extends JpaRepository<Course, String> {
}
